package com.cloudpolice.equipment.service;

import com.cloudpolice.equipment.model.EquipmentAdvertisingModel;
import com.cloudpolice.equipment.model.InPutParam.EquipmentAdvertisingSelectInParam;

import java.util.List;

/**
 * @author ：梁昊，后端工程师：flyman5，前端工程师：孙耀
 * @create 2020-04-02 12:44
 * @function
 * @editLog
 */
public interface EquipmentAdvertisingService {
    /**
     * 增加门禁机广告
     *
     * @param equipmentAdvertisingModel com.cloudpolice.equipment.model.InPutParam.EquipmentAdvertisingModel
     * @return 广告列表
     */
    int insertEquipmentAdvertising(EquipmentAdvertisingModel equipmentAdvertisingModel);

    /**
     * 修改指定门禁机广告
     *
     * @param equipmentAdvertisingModel com.cloudpolice.equipment.model.InPutParam.EquipmentAdvertisingModel
     * @return 广告列表
     */
    int updateEquipmentAdvertisingById(EquipmentAdvertisingModel equipmentAdvertisingModel);

    /**
     * 删除门禁机广告
     *
     * @param equipmentAdvertisingModel com.cloudpolice.equipment.model.InPutParam.EquipmentAdvertisingModel
     * @return 影响条数
     */
    int deleteEquipmentAdvertisingById(EquipmentAdvertisingModel equipmentAdvertisingModel);

    /**
     * 得到门禁机广告
     *
     * @param equipmentAdvertisingSelectInParam 得到门禁机广告
     * @return 广告列表
     */
    List<EquipmentAdvertisingModel> selectEquipmentAdvertising(EquipmentAdvertisingSelectInParam equipmentAdvertisingSelectInParam);
}
